<script>
	function chamarAction(id){
		$("#inicial").empty();
		$('#inicial').load('<?php echo $this->base ?>/pessoas/cadastrarCliente/'+id);
		
	}
</script>
<table>
  <tr>
    <th>FUNCIONÁRIO</th>
    <th>DATA/HORA</th>
    <th>STATUS</th>
    <th>DESCRIÇÃO</th>
  </tr>
  <?php
	$i = 0;
	foreach ($statuses as $status):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td onclick="chamarAction(<?php echo $status['OrdemservicosStatus']['id']; ?>)" style="cursor:pointer;">
			<?php echo $status['OrdemservicosStatus']['funcionario']; ?>&nbsp;
		</td>
		<td onclick="chamarAction(<?php echo $status['OrdemservicosStatus']['id']; ?>)" style="cursor:pointer;">
			<?php echo date('d/m/Y - H:i', strtotime($status['OrdemservicosStatus']['created'])); ?>&nbsp;
		</td>
		<td onclick="chamarAction(<?php echo $status['OrdemservicosStatus']['id']; ?>)" style="cursor:pointer;">
			<?php echo $status['Status']['nome']; ?>&nbsp;
		</td>
		<td onclick="chamarAction(<?php echo $status['OrdemservicosStatus']['id']; ?>)" style="cursor:pointer;">
			<?php echo $status['OrdemservicosStatus']['descricao']; ?>&nbsp;
		</td>
	</tr>
<?php endforeach; ?>
</table>